package com.fs.controller.vo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("给用户关联角色请求")
@Data
public class ReqAddRoles {
   @ApiModelProperty("角色id列表")
   @NotNull(message="role不能为空")
   @NotEmpty
   private List<Integer> RoleIDs;
   @ApiModelProperty("用户id")
   @NotNull
   @Min(value = 1,message = "不能小于1")
   private Integer UserID;
}
